<?php
/*
   固定广告位管理
*/
class AdController extends AdminController {
	public  $modelName = 'WebAd';
    /*
        actionIndex  广告位列表
        actionEdit   编辑广告位
    */
	public function modelProvider() {
		return array_merge(parent::modelProvider(), array(
			'criteria' => array('scopes'=>'related'),
		));
	}
	public function outerActions() {
		return array_merge(parent::outerActions(), array(
			'admin' => 'actions.mall.webAd.admin',
			'edit' => 'actions.mall.webAd.edit',
			'view' => 'actions.mall.webAd.view'
		));
	}
}
?>